/* Disable text selection */
body {
  user-select: none;
  -webkit-user-select: none; /* For Safari */
  -ms-user-select: none; /* For IE/Edge */
  overflow-x: hidden; /* Restrict horizontal scrolling */
  cursor: none; /* Hide the default cursor */
}

/* Color variables */
:root {
  --cursor-blue: #0731d1;
  --cta-black: #000;
}

#custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background-color: var(--cursor-blue); /* Use variable */
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
  animation: cursor-pulse 1s infinite;
}

/* Pulsating animation */
@keyframes cursor-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

a,
button {
  cursor: none; /* Ensure default cursor is hidden for clickable elements */
}

a:hover,
button:hover {
  /* Increase the size of the custom cursor on hover */
  #custom-cursor {
    width: 40px;
    height: 40px;
    transition: width 0.2s ease, height 0.2s ease;
  }
}

header {
  font-family: "Barlow", sans-serif;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0px;
  position: fixed;
  top: 0;

  width: 100%;
  z-index: 1000;
  transition: top 0.3s ease, background-color 0.3s ease,
    backdrop-filter 0.3s ease, top 0.3s ease-in-out; /* Smooth transition for hiding and showing */
}

header .logo a {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  text-decoration: none;
}

header.scrolled .logo a {
  color: #000; /* Change logo text color to black */
}

header nav {
  background-color: #f5f5f5;
  padding: 10px 20px;
  border-radius: 50px;
}

header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

header nav ul li a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
}

header .cta .cta-button {
  display: flex;
  align-items: center;
  background-color: var(--cta-black);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 16px;
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}

/* Wipe animation on hover */
header .cta .cta-button::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: var(--cursor-blue);
  z-index: 0;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header .cta .cta-button:hover::before {
  width: 100%;
}

header .cta .cta-button span,
header .cta .cta-button {
  position: relative;
  z-index: 1;
}

header .cta .cta-button:hover {
  color: #fff;
}

header .cta .cta-button span {
  margin-left: 10px;
}

header .pill {
  display: flex;
  position: relative;
  background-color: transparent; /* Default no background */
  color: #ffffff; /* Default white text */
  backdrop-filter: none; /* Remove blur effect */
  transition: background-color 0.3s ease, color 0.3s ease,
    backdrop-filter 0.3s ease; /* Smooth transition */
  border-radius: 50px;
  padding: 0.5rem 2rem;
  box-shadow: none; /* No shadow by default */
}

header .pill a {
  color: #ffffff; /* Change text color to black on scroll */
}

header.scrolled {
  background-color: rgba(
    255,
    255,
    255,
    0.8
  ); /* Semi-transparent white background on scroll */
  color: #000000; /* Black text on scroll */
  backdrop-filter: blur(10px); /* Glass-like blur effect on scroll */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

header .scrolled .pill a {
  text-decoration: none;
  color: #000;
  align-items: center;
}

header.glass-header {
  display: grid;
  top: 0%;
  text-align: center;
  color: #000000;
  font-size: 15px;
  height: 100px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.24);
  align-content: center;
  border-radius: 50px;
  background-color: rgb(255, 255, 255); /* Semi-transparent background */
  backdrop-filter: blur(10px); /* Glass-like blur effect */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

header.glass-header a {
  text-decoration: none;
  color: #000000;
  align-items: center;
}

.icon {
  width: 20px;
  padding: 20px;
}

.sidebar {
  width: 3em;
}

footer {
  position: fixed;
  bottom: 0px;
  z-index: 10;
  height: 3rem;
  width: 100%;
  background: #ffffff;
  color: #000000;
  font-size: 12px;
  align-items: center;
  text-align: center;
}

footer .social-media {
  display: flex;
  position: absolute;
  justify-content: right;
  align-items: flex-end;
  gap: 10px;
  left: 0%;
  bottom: -10%;
}

.menu-hide {
  align-items: center;
  padding-top: 2em;
  z-index: 10000000000;
}

header a {
  text-decoration: none;
  color: #ffffff;
  align-items: center;
}

.menu-hide {
  padding-top: 2em;
}

.icon :hover {
  filter: drop-shadow(0 0 0.75rem orangered);
}

.menu-hide :hover {
  color: orangered;
}

@media screen and (max-width: 450px) {
  .menu-hide {
    visibility: hidden;
  }

  .sidebar {
    visibility: hidden;
  }
}

@media screen and (max-width: 1080px) {
  .menu-hide {
    visibility: hidden;
  }

  .sidebar {
    visibility: hidden;
  }
}

header.hidden {
  top: -100px; /* Move header out of view */
}

@media screen and (max-width: 768px) {
  header {
    align-items: flex-end;
    padding: 10px;
  }

  header .logo {
    margin-bottom: 10px;
  }

  header nav {
    visibility: hidden;
  }

  header nav ul {
    visibility: hidden;
  }

  header .pill {
    visibility: hidden;
  }

  header .cta {
    margin-top: 10px;
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  header {
    flex-direction: column;
    width: 95%;
    align-items: center;
    height: 3%;
  }

  header .logo a {
    font-size: 20px;
  }

  header nav ul li a {
    visibility: hidden; /* Hide navigation links on small screens */
  }

  header .pill {
    visibility: hidden; /* Hide pill on small screens */
  }

  header .cta {
    visibility: hidden;
    margin-top: 10px;
    text-align: center;
  }

  footer {
    height: fit-content;
  }

  footer .social-media {
    display: none;
  }
}
